package com.eunion.core.common.response;

import java.util.List;

import org.springframework.http.HttpStatus;

public class ResponseList<T> {

    private int code;

    private String msg;

    private List<T> list;

    public ResponseList(HttpStatus httpStatus, List<T> list) {
        this.code = httpStatus.value();
        this.msg = httpStatus.getReasonPhrase();
        this.list = list;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

}
